define(['app','geoFactory','swiper'], function(app,geoFactory,Swiper){
      
   return app.controller('wdListCtrl', ['$scope','$rootScope','$http','geoFactory','$timeout', function ($scope,$rootScope,$http,geoFactory,$timeout) {

            $rootScope.headTitle = $rootScope.title = "营业网点";
            $rootScope.favBol = false;
            $rootScope.backBol = false;

            $scope.getMore = function(){
              angular.element('.list-box ul').append('<p>1111111111111111111111</p>')
            }
            $http.get('./json/yywd.json').
              success(function(data) {

                $scope.branchs = data.branchs;
                
              });

            $http.get('./json/indexsp.json').
              success(function(data) {
                $scope.swps = data.imgs;
                $timeout(function(){
                  new Swiper(".swiper-container",{
                                    pagination:".swiper-pagination",
                                    loop:true,
                                    obverser:true,
                                    autoplay: true,
                                    watchOverflow: true,
                                  });
                },200)
            }).then(function successCallback(response) {
               
              }, function errorCallback(response) {
               // 请求失败执行代码
              });
        }])

})